//
//  Todo.h
//  DoIT
//
//  Created by gex on 14/11/10.
//  Copyright (c) 2014年 gex. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppConfig.h"

@interface Todo : NSObject
@property (nonatomic,strong) NSNumber  *Id;
@property (nonatomic,copy) NSString *content;
@property (nonatomic,copy) NSNumber  *status;
@property (nonatomic,copy) NSDate *creationTime;
@property (nonatomic,copy) NSDate *modifyTime;
/**
 *  初始化
 *
 *  @param name 内容
 *
 *  @return todo对象
 */
-(Todo *)initWithContent:(NSString *)content;

/**
 *  使用字典初始化用
 *
 *  @param dic 用户数据
 *
 *  @return todo对象
 */
-(Todo *)initWithDictionary:(NSDictionary *)dic;

#pragma mark - 静态方法
+(Todo *)todoWithContent:(NSString *)content;
@end
